package 自定义异常;

public class Teacher {
    public void CheckScore(int score) throws ScoreException {
        if (score<0||score>100){
            throw new ScoreException("分数异常，不在正常分数范围内" );
        }else {
            System.out.println("分数正常");
        }
    }
}
